package com.nzx.business.user.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.nzx.business.user.entity.User;
import com.nzx.business.user.mapper.UserMapper;
import com.nzx.business.user.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

    @Autowired
    private UserMapper userMapper;


    @Override
    public User queryUserDetail(Integer id) {

        User user = userMapper.selectById(id);
        if(user != null){
            log.info("获取用户=[{}]信息成功！",id);
        }
        return user;
    }
}